<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪类元素选择器</title>
    <style>
        div {
            width: 400px;
            height: 400px;
            background-color: brown;
        }
        div::before {
            content: "秋天";
            width: 100px;
            height: 100px;
            background-color: yellow;
            display: inline-block;
        }
        div::after {
            content: "落叶";
            width: 100px;
            height: 100px;
            background-color: blue;
            display: inline-block;
        }
    </style>
</head>
<body>
    <div>
        瘦了满地的
    </div>
</body>
</html>